package com.wgq.test;

class Amal{
    public   void jiao(){
        System.out.println("小动物叫！");
    }
}

class Dog extends Amal {
    public   void jiao(){
        System.out.println("小狗叫！！！");
    }
}

class Cat extends Amal {

}

public class TsetDuoTai {

    public static void main(String[] args) {
        Amal al = new Dog();
        al.jiao();
        Amal a2 = new Cat();
        a2.jiao();
    }
}
